#This file defines const varibles

# machine_type
MACHINE_TYPE_AUTOTEST = 1
MACHINE_TYPE_MANTEST = 2
MACHINE_TYPE_OTHER = 3

# intg_type
INTG_TYPE_PRE = 1
INTG_TYPE_POST = 2

# arch
ARCH_X86 = 1
ARCH_SPARC = 2

# ipaddr_type
IPADDR_TYPE_STATIC = 1
IPADDR_TYPE_DHCP = 2

# machine status
MSTATUS_INITIAL = 0
MSTATUS_INSTALL = 1
MSTATUS_UPDATE = 2
MSTATUS_READY = 3
MSTATUS_RUNNING = 4
MSTATUS_ERROR = 5
MSTATUS_UNREACHABLE = 6
MSTATUS_NOTCTRL = 7

UPDATE_INST_TIMES_MAX_DEFAULT = 6

# machine status timeout in seconds
MSTATUS_TIMEOUT = {
  MSTATUS_INSTALL : 10800,
  MSTATUS_UPDATE : 720,
  MSTATUS_READY : 720,
  MSTATUS_RUNNING : 720,
  MSTATUS_ERROR : 720,
  MSTATUS_UNREACHABLE : 720 
}

# dtbld_type
DTBLD_TYPE_STABLE = 1
DTBLD_TYPE_DEVEL = 2
DTBLD_TYPE_DEFAULT = 3

# job status
JSTATUS_SCHEDULED = 1
JSTATUS_STARTED = 2
JSTATUS_FINISHED = 3
JSTATUS_TERMINATED = 4
JSTATUS_CANCELLED = 5

# job timing type
# start job now
JSTART_TYPE_NOW = 1
# start job next build
JSTART_TYPE_NEXT = 2
# start job next build after x hours
JSTART_TYPE_NEXTAFTER = 3
# start job at a specified date
JSTART_TYPE_FIXED = 4
# when NEXAFTER/FIXED job is timeup
# set start_delay_hours as this value
JOB_CRON_TIMEUP_FLAG = -1

# test execution status
TSTATUS_SCHEDULED = 1
TSTATUS_STARTED = 2
TSTATUS_FINISHED = 3
TSTATUS_ERROR = 4
TSTATUS_TERMINATED = 5
TSTATUS_TIMEOUT = 6
TSTATUS_CANCELLED = 7

# CTE status
CTESTATUS_NOA = 11
CTESTATUS_AMB = 12
CTESTATUS_ERR = 13
CTESTATUS_INIT_INST = 1
CTESTATUS_DT_INST = 2
CTESTATUS_OS_UPGD = 3
CTESTATUS_LAST_STEP = 4
CTESTATUS_NET_INST_RETRY = 5
CTESTATUS_FINISH = 6
CTESTATUS_FAIL = 7 

# log type
LOG_TYPE_INST = 1
LOG_TYPE_TEST = 2
LOG_TYPE_TESTGROUP = 3
LOG_TYPE_NATR = 4

# build type
BUILD_TYPE_DT = 1
BUILD_TYPE_OS = 2

